package br.com.dufs.mvc.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import br.com.dufs.mvc.dao.interfaces.AguaEstradaDAO;
import br.com.dufs.mvc.model.AguaEstrada;
import com.fscoreunipe.mvc.service.interfaces.ServiceGenericoBO;

@Service("aguaEstradaBO")
public class AguaEstradaBOService implements
		ServiceGenericoBO<AguaEstrada, Integer> {

	@Autowired
	AguaEstradaDAO objDAO;

	@Override
	public AguaEstrada salvar(AguaEstrada object) {
		return objDAO.salvar(object);
	}

	@Override
	public AguaEstrada pesquisarPorId(Integer id) {
		return objDAO.pesquisarPorId(id);
	}

	@Override
	public AguaEstrada atualizar(AguaEstrada object) {
		return objDAO.atualizar(object);
	}

	@Override
	public void excluir(AguaEstrada object) {
		objDAO.excluir(object);
	}

	@Override
	public List<AguaEstrada> todos() {
		return objDAO.todos();
	}
	
	public AguaEstrada pesquisarPorCPF(String id) {
		return objDAO.pesquisarPorCPF(id);
	}

}